#include <unistd.h>
#include <cstdio>
#include <sys/timerfd.h>
#include <time.h>
#include <chrono>
#include <iostream>
using namespace std;
using namespace chrono;
int main()
{

	auto fetch_now = []()->size_t {
		auto duration_now = std::chrono::duration_cast<std::chrono::milliseconds>(
			std::chrono::system_clock::now().time_since_epoch()).count();
		return (size_t)duration_now;
	};

	using timer = std::chrono::system_clock;
	auto start = timer::now();
	
	for (int i = 0; i < 1000 * 10000; i++) {
		auto d = fetch_now();
	}
	auto end = timer::now();
	auto time_span = std::chrono::duration_cast<std::chrono::duration<double>>(end - start);
	cout << "ss: " << time_span.count() << endl;
	return 0;
}